tree.io.formats.csv = {}

tree.io.formats.csv.load = (data) ->
    values = []
    seperator = ','
    lines = data.split '\n'
    
    for line in lines
        vals = line.split seperator
        values.push vals
    
    return values

tree.io.formats.csv.dump = (data) ->
    seperator = ','
    ret = ''
    for row in data
        for col in row
            ret += col
            ret += seperator
        
        ret  += '\n'
    return ret

